import requests
import json


def main():
        
    url = "https://qianfan.baidubce.com/v2/app/conversation/runs"
    
    payload = json.dumps({
        "app_id": "5eb075e9-8551-4357-8534-5dad224eaed7",
        "query": "你好",
        "stream": False,
        "conversation_id": "7275da3d-4c50-4938-aa5d-010fd4ba2931"
    })
    headers = {
        'Content-Type': 'application/json',
        'X-Appbuilder-Authorization': 'Bearer bce-v3/ALTAK-qdOByRlbA0Hhrz4scRjl4/b259a3971f73a10f20d5ab583fb1a1388eafacbf'
    }
    
    response = requests.request("POST", url, headers=headers, data=payload)
    
    print(response.text)
    

if __name__ == '__main__':
    main()
